﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000BF5 RID: 3061
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MovieRacingData : IMessage<MovieRacingData>, IMessage, IEquatable<MovieRacingData>, IDeepCloneable<MovieRacingData>, IBufferMessage
	{
		// Token: 0x170026A2 RID: 9890
		// (get) Token: 0x0600890F RID: 35087 RVA: 0x0016CC0B File Offset: 0x0016AE0B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MovieRacingData> Parser
		{
			get
			{
				return MovieRacingData._parser;
			}
		}

		// Token: 0x170026A3 RID: 9891
		// (get) Token: 0x06008910 RID: 35088 RVA: 0x0016CC12 File Offset: 0x0016AE12
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MovieRacingDataReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170026A4 RID: 9892
		// (get) Token: 0x06008911 RID: 35089 RVA: 0x0016CC24 File Offset: 0x0016AE24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MovieRacingData.Descriptor;
			}
		}

		// Token: 0x06008912 RID: 35090 RVA: 0x0016CC2B File Offset: 0x0016AE2B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MovieRacingData()
		{
		}

		// Token: 0x06008913 RID: 35091 RVA: 0x0016CC34 File Offset: 0x0016AE34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MovieRacingData(MovieRacingData other) : this()
		{
			this.eJGPHOJMGPN_ = other.eJGPHOJMGPN_;
			this.jPIOKPFKNGK_ = other.jPIOKPFKNGK_;
			this.level_ = other.level_;
			this.type_ = other.type_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06008914 RID: 35092 RVA: 0x0016CC88 File Offset: 0x0016AE88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MovieRacingData Clone()
		{
			return new MovieRacingData(this);
		}

		// Token: 0x170026A5 RID: 9893
		// (get) Token: 0x06008915 RID: 35093 RVA: 0x0016CC90 File Offset: 0x0016AE90
		// (set) Token: 0x06008916 RID: 35094 RVA: 0x0016CC98 File Offset: 0x0016AE98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EJGPHOJMGPN
		{
			get
			{
				return this.eJGPHOJMGPN_;
			}
			set
			{
				this.eJGPHOJMGPN_ = value;
			}
		}

		// Token: 0x170026A6 RID: 9894
		// (get) Token: 0x06008917 RID: 35095 RVA: 0x0016CCA1 File Offset: 0x0016AEA1
		// (set) Token: 0x06008918 RID: 35096 RVA: 0x0016CCA9 File Offset: 0x0016AEA9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint JPIOKPFKNGK
		{
			get
			{
				return this.jPIOKPFKNGK_;
			}
			set
			{
				this.jPIOKPFKNGK_ = value;
			}
		}

		// Token: 0x170026A7 RID: 9895
		// (get) Token: 0x06008919 RID: 35097 RVA: 0x0016CCB2 File Offset: 0x0016AEB2
		// (set) Token: 0x0600891A RID: 35098 RVA: 0x0016CCBA File Offset: 0x0016AEBA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x170026A8 RID: 9896
		// (get) Token: 0x0600891B RID: 35099 RVA: 0x0016CCC3 File Offset: 0x0016AEC3
		// (set) Token: 0x0600891C RID: 35100 RVA: 0x0016CCCB File Offset: 0x0016AECB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MovieRacingType Type
		{
			get
			{
				return this.type_;
			}
			set
			{
				this.type_ = value;
			}
		}

		// Token: 0x0600891D RID: 35101 RVA: 0x0016CCD4 File Offset: 0x0016AED4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MovieRacingData);
		}

		// Token: 0x0600891E RID: 35102 RVA: 0x0016CCE4 File Offset: 0x0016AEE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MovieRacingData other)
		{
			return other != null && (other == this || (this.EJGPHOJMGPN == other.EJGPHOJMGPN && this.JPIOKPFKNGK == other.JPIOKPFKNGK && this.Level == other.Level && this.Type == other.Type && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600891F RID: 35103 RVA: 0x0016CD50 File Offset: 0x0016AF50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.EJGPHOJMGPN != 0U)
			{
				num ^= this.EJGPHOJMGPN.GetHashCode();
			}
			if (this.JPIOKPFKNGK != 0U)
			{
				num ^= this.JPIOKPFKNGK.GetHashCode();
			}
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this.Type != MovieRacingType.MovieRacingOverTake)
			{
				num ^= this.Type.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06008920 RID: 35104 RVA: 0x0016CDE0 File Offset: 0x0016AFE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06008921 RID: 35105 RVA: 0x0016CDE8 File Offset: 0x0016AFE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06008922 RID: 35106 RVA: 0x0016CDF4 File Offset: 0x0016AFF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Type != MovieRacingType.MovieRacingOverTake)
			{
				output.WriteRawTag(32);
				output.WriteEnum((int)this.Type);
			}
			if (this.JPIOKPFKNGK != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.JPIOKPFKNGK);
			}
			if (this.Level != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Level);
			}
			if (this.EJGPHOJMGPN != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.EJGPHOJMGPN);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06008923 RID: 35107 RVA: 0x0016CE88 File Offset: 0x0016B088
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.EJGPHOJMGPN != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EJGPHOJMGPN);
			}
			if (this.JPIOKPFKNGK != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.JPIOKPFKNGK);
			}
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this.Type != MovieRacingType.MovieRacingOverTake)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Type);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06008924 RID: 35108 RVA: 0x0016CF10 File Offset: 0x0016B110
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MovieRacingData other)
		{
			if (other == null)
			{
				return;
			}
			if (other.EJGPHOJMGPN != 0U)
			{
				this.EJGPHOJMGPN = other.EJGPHOJMGPN;
			}
			if (other.JPIOKPFKNGK != 0U)
			{
				this.JPIOKPFKNGK = other.JPIOKPFKNGK;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			if (other.Type != MovieRacingType.MovieRacingOverTake)
			{
				this.Type = other.Type;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06008925 RID: 35109 RVA: 0x0016CF88 File Offset: 0x0016B188
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06008926 RID: 35110 RVA: 0x0016CF94 File Offset: 0x0016B194
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 48U)
				{
					if (num == 32U)
					{
						this.Type = (MovieRacingType)input.ReadEnum();
						continue;
					}
					if (num == 48U)
					{
						this.JPIOKPFKNGK = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 80U)
					{
						this.Level = input.ReadUInt32();
						continue;
					}
					if (num == 96U)
					{
						this.EJGPHOJMGPN = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x0400344B RID: 13387
		private static readonly MessageParser<MovieRacingData> _parser = new MessageParser<MovieRacingData>(() => new MovieRacingData());

		// Token: 0x0400344C RID: 13388
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400344D RID: 13389
		public const int EJGPHOJMGPNFieldNumber = 12;

		// Token: 0x0400344E RID: 13390
		private uint eJGPHOJMGPN_;

		// Token: 0x0400344F RID: 13391
		public const int JPIOKPFKNGKFieldNumber = 6;

		// Token: 0x04003450 RID: 13392
		private uint jPIOKPFKNGK_;

		// Token: 0x04003451 RID: 13393
		public const int LevelFieldNumber = 10;

		// Token: 0x04003452 RID: 13394
		private uint level_;

		// Token: 0x04003453 RID: 13395
		public const int TypeFieldNumber = 4;

		// Token: 0x04003454 RID: 13396
		private MovieRacingType type_;
	}
}
